package com.letoy.edu.dao;

import com.letoy.edu.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface UserMapper {
    String getUserIdByNamePassword(String name, String password);

    User getUserByName(String name);

    String getTokenById(String id);

    int insertToken(String id, String token);

    User loginUser(User user);

    User getUserByUserId(String userId);
}
